import http from '@/common/utils/request.js'

export const user = {
	//手机号密码登陆
	phoneLogin(data){
		return http.post('/userForC/phoneLogin/', data, {custom:{}})
	},
	//快捷登录
	wxLoginForOpenid(data){
		return http.post('/userForC/wxLoginForOpenid/', data, {custom:{}})
	},
	//手机号授权登录
	wxLogin(data){
		return http.post('/userForC/wxLogin/', data, {custom:{}})
	},
	//注册
	phoneReg(data){
		return http.post('/userForC/phoneReg/', data, {custom:{}})
	},
	//获取用户信息
	getUserInfo(data){
		return http.post('/userForC/getUserInfo/', data, {custom:{}})
	},
	//更新用户信息
	updateUser(data){
		return http.post('/userForC/updateUser/', data, {custom:{}})
	},
	//重置密码
	resetPwd(data){
		return http.post('/userForC/resetPwd/', data, {custom:{}})
	},
}